function order_detail(order_id){
				$(".order_detail_list .before_list").siblings().remove();
			         	$.ajax({
					url:api_path+"/vender_admin/order/detail",
					data:{
						"order_id":order_id,
						"login_name":$.cookie('login_name'),
						"auth_token":$.cookie('token')
					},
					type:'post',
					success:function(data){
						if(data.errno == 0){
							$(".order_detail").fadeIn();
							var order_info = data.data.order_info;
							var verify_info = data.data.order_verify_info;
							var goods_desc = data.data.goods_desc ;
							$(".orders_title").text(order_info.goods_name);
							$(".orders_num span").text(order_info.goods_number);
							$(".orders_sn span").text(order_info.order_sn);
							$(".orders_peyFee span").text(order_info.pay_fee);
							$(".orders_phoneNum span").text(order_info.mobile);
							$(".orders_coupons span").text(order_info.coupons_money);
							$(".orders_addTime span").text(order_info.add_time);
							$(".orders_totalFee span").text(order_info.total_fee);
							$(".orders_goodsDesc").html(goods_desc.html_desc);

							$.each(verify_info, function(index,res){
															
						       var trs = "";   
									trs += "<li class=''><span class='orders_verifySn'>"+res.verify_sn+"</span><span class='orders_verifyStatus'></span></li>";
						             //tbody += trs;         
						             $(".order_detail_list").append(trs);  
						       if(verify_info.verify_status==1){
									$(".orders_verifyStatus").text("已使用");
								}else{
									$(".orders_verifyStatus").addClass("no_used").text("未使用");
								}
						           
						         });  
						         i+=count;
								 new IScroll('#padding_contn');
						}else{
							alert(data.errmsg);
						}
					}
				});

			         }
			var i = 0;
			var count = 20;
function upPullrefresh(){
	$.ajax({
		url:"/ajax/call/vender_admin/sharecard_list",
		data:{
			"start": i,
			"count":count
		},
		type:'post',
		success:function(data){
			if(data.errno){
				alert("ernno"+data.errno+"errmsg"+data.errmsg);
			}else{
				var obj = data.sharecard_list ;
				if(obj.length > 0){
					$.each(obj, function(index,res){
						var trs = '';  
							trs += '<div class="data_items" order_id="1003894">'; 
							trs += '<a href="javascript:void(0);" class="order_list_btn">'; 
							trs += '<div class="order_list order_title">'; 
							trs += '<div class="c_l">'+res.goods_name+'</div>'; 
							trs += '<span class="c_r">'+res.total_count+'次卡</span>'; 
							trs += '</div>'; 
							trs += '<div class="order_list order_content">'; 
							trs += '<div class="datas_item">'; 
							trs += '<div class="c_l"><p>商家:'+res.vender_name+'</p><p>电话:'+res.user_mobile+'</p></div>'; 
							trs += '<span class="c_r">剩余:'+res.left_count+'次</span>'; 
							trs += '</div>'; 
							trs += '</div>'; 
							trs += '<div class="order_list order_bottom">'; 
							trs += '<div class="c_l">有效期至：'+res.expire_date+'</div>'; 
							trs += '<span class="c_r"></span>'; 
							trs += '</div>'; 
							trs += '</a>'; 
							trs += '</div>'; 
						//tbody += trs;         
						$("#add").append(trs);  
					});  
					i+=count;
				}else{
					$("#add").append('<div style="line-height:30px;text-align:center;">暂无数据</div>');
				}

				
			}
		}
	});
$("#index").click(function(){
				window.location.href="../../index.html";
				})
				$("#account").click(function(){
				window.location.href="../account.html";
				})
				$("#order").click(function(){
				window.location.href="order.html";
				})
}

				

